home *** CD-ROM | disk | FTP | other *** search
/ Interactive Media Design Review 1999 / Interactive Media Design Review 1999.iso / pc / allfiles / tokyo / east.dir / 00015_Script_eastBirth < prev    next >
Text File  |  1999-04-26  |  1KB  |  39 lines

  1. global Ecounter, EsprtList
  2. property sprt, cst, alive, posList, clock
  3.  
  4. on new me, mysprt, mycst
  5.   --  set Ecounter=Ecounter+1
  6.   --  if Ecounter=19 then set Ecounter=9
  7.   set clock=1
  8.   set alive=1
  9.   set posList=[]
  10.   set sprt=mysprt
  11.   set cst = mycst
  12.   puppetsprite sprt,1
  13.   set the membernum of sprite sprt = cst
  14.   set the blend of sprite sprt = 100
  15.   set the loc of sprite sprt = point(the mouseh,the mousev)
  16.   --  updatestage
  17.   return me
  18. end
  19.  
  20. on run me
  21.   if alive = 1 then
  22.     if the blend of sprite sprt > 0 then
  23.       add posList point(the mouseh,the mousev)
  24.       set the blend of sprite sprt = the blend of sprite sprt-10
  25.       set the loc of sprite sprt = point(the mouseh,the mousev)
  26.       if the blend of sprite sprt=0 then 
  27.         set alive = 0
  28.       end if
  29.     end if
  30.   end if
  31.   
  32.   if alive = 0 then
  33.     set the loc of sprite sprt = getat(posList, clock)
  34.     set clock=clock+1
  35.     if clock=11 then set clock=1
  36.     set the blend of sprite sprt = the blend of sprite sprt -10
  37.   end if
  38. end
  39.